package Chapter3;

import java.util.Scanner;

public class NewCaculater {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个数:");
        int num1 = scanner.nextInt();

        System.out.println("请输入第二个数:");
        int num2 = scanner.nextInt();

        int result = num1 + num2;
        //如何可以让用户自定义输入运算法则？
        System.out.printf("%d+%d=%d",num1,num2,result);
    }
}
